﻿<script type="text/template" id="list-flow-item-template">
    <td class="text-center">
        <%= model.Order %>
    </td>
    <td>
        <%= model.Name %>
    </td>
    <td>
        <%= model.Description %>
    </td>
    <td>
        <%= model.DocTypeName %>
    </td>

    <td>
        <%= dateFormat( model.UpdatedAt, jsResources.lang.DateFormat) %>
    </td>
    <td>
       <input type="checkbox"  <%= model.IsCommon == true ? 'checked="checked"' : '' %> name = "IsCommon" class="cbxIsCommon" />
    </td>
    <td>
       <input type="checkbox"  <%= model.IsActive == true ? 'checked="checked"' : '' %> name = "IsActive" class="cbxIsActive" />
    </td>
    <td>
        <a href="/admin/createflow/?id=<%= model.id %>" class="grid-update-flow"><%= jsResources.lang.GridEdit %></a>    
    </td>
    <td>
         <a href="javascript:void(0)" class="grid-delete-flow"><%= jsResources.lang.GridDelete %></a>               
    </td>
    <td>
         <a href="javascript:void(0)" class="grid-copy-flow"><%= jsResources.lang.GridCopy %></a>               
    </td>
</script>

<script type="text/template" id="doctype-to-flow-template">
    <div style="float:left; margin-bottom:15px;">
        <div style="float:left;">
            <%= jsResources.lang.ManageFlowAddDocType %>
        </div>
        <div style="float:left; margin-left:15px;">
            <select name="DocTypeId" id="select-doctype-id">
                <%= VH.MakeOption(VOFFICE.ManageFlow.DocTypeList, null) %>
            </select>
        </div>
    </div>
    <div class="clear"></div>
    <center>
        <input type="button" id="SaveDocTypeToFlow" value="<%= jsResources.lang.ManageFlowAddDocTyeButton %>"/>
    </center>
</script>